package com.itheima.pojo.hm;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.pojo.pe.QuestionsOptions;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/*
 *@Parm
 *@ClassName HmCompanys
 *@Date 2022/1/9 19:47
 */
@TableName("hm_questions")
@Data
public class HmQuestions {
    @TableId(type = IdType.AUTO)
    private Integer id;

    //号码
    private String number;

    @TableField(exist = false)
    private String subject;

    @TableField("subjectID")
    private Integer subjectID;


    @TableField(exist = false)
    private String catalog;

    @TableField("catalogID")
    private Integer catalogID;

    @TableField(exist = false)
    private String enterprise;

    @TableField("enterpriseID")
    private Integer enterpriseID;

    //省
    private String province;

    //市
    private String city;

    //类型
    private String direction;

    //问题类型
    @TableField("questionType")
    private String questionType;

    private String difficulty;

    //问题
    private String question;

    //访问网址
    @TableField("videoURL")
    private String videoURL;

    //回答
    private String answer;

    private String remarks;

    private String tags;

    @TableField("isChoice")
    private Integer isChoice;

    @TableField("publishState")
    private Integer publishState;

    @TableField("publishDate")
    private LocalDateTime publishDate;

    @TableField("chkState")
    private Integer chkState;

    @TableField("chkUserID")
    private Integer chkUserID;

    @TableField("chkRemarks")
    private String chkRemarks;

    @TableField("chkDate")
    private LocalDateTime chkDate;

    @TableField(exist = false)
    private String creator;

    @TableField("creatorID")
    private Integer creatorID;

    //添加时间
    @TableField("addDate")
    private LocalDateTime addDate;

    @TableField(exist = false)
    private List<QuestionsOptions> options;

}
